Allow `letrec` binding without init expression
authorMattias Engdegård <mattiase@acm.org>
Sat, 4 May 2024 12:09:23 +0000 (14:09 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sat, 4 May 2024 12:39:24 +0000 (14:39 +0200)
commitfd859fbea2e9d13e76db1c5295d9ddd1c5955d83
tree9d45fd4e72f3adf54b4fd2a6508395d1ce08acb0
parent1e4cb12a8189b16e523bfcb4bd88a9de8f78a181
Allow `letrec` binding without init expression

For example, (letrec (... (x) ...) ...) is now allowed.

* lisp/subr.el (letrec): Allow omitted init expression.
* test/lisp/subr-tests.el (subr--tests-letrec): Add test case.
lisp/subr.el
test/lisp/subr-tests.el